package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TPerformanceMapper;
import com.ruoyi.system.domain.TPerformance;
import com.ruoyi.system.service.ITPerformanceService;

/**
 * 员工业绩Service业务层处理
 * 
 * @author xyz
 * @date 2025-06-28
 */
@Service
public class TPerformanceServiceImpl implements ITPerformanceService 
{
    @Autowired
    private TPerformanceMapper tPerformanceMapper;

    /**
     * 查询员工业绩
     * 
     * @param id 员工业绩主键
     * @return 员工业绩
     */
    @Override
    public TPerformance selectTPerformanceById(Long id)
    {
        return tPerformanceMapper.selectTPerformanceById(id);
    }

    /**
     * 查询员工业绩列表
     * 
     * @param tPerformance 员工业绩
     * @return 员工业绩
     */
    @Override
    public List<TPerformance> selectTPerformanceList(TPerformance tPerformance)
    {
        return tPerformanceMapper.selectTPerformanceList(tPerformance);
    }

    /**
     * 新增员工业绩
     * 
     * @param tPerformance 员工业绩
     * @return 结果
     */
    @Override
    public int insertTPerformance(TPerformance tPerformance)
    {
        return tPerformanceMapper.insertTPerformance(tPerformance);
    }

    /**
     * 修改员工业绩
     * 
     * @param tPerformance 员工业绩
     * @return 结果
     */
    @Override
    public int updateTPerformance(TPerformance tPerformance)
    {
        return tPerformanceMapper.updateTPerformance(tPerformance);
    }

    /**
     * 批量删除员工业绩
     * 
     * @param ids 需要删除的员工业绩主键
     * @return 结果
     */
    @Override
    public int deleteTPerformanceByIds(Long[] ids)
    {
        return tPerformanceMapper.deleteTPerformanceByIds(ids);
    }

    /**
     * 删除员工业绩信息
     * 
     * @param id 员工业绩主键
     * @return 结果
     */
    @Override
    public int deleteTPerformanceById(Long id)
    {
        return tPerformanceMapper.deleteTPerformanceById(id);
    }
}
